package com.tanhua.server.exception;

import com.tanhua.model.vo.ErrorResult;
import lombok.Data;

/**
 * 自定义异常
 */
@Data
public class BusinessException extends RuntimeException{
    private ErrorResult result;

    public BusinessException(ErrorResult result) {
        super(result.getErrMessage());
        this.result = result;
    }
}
